#include <stdio.h>

int Sum(int begin, int end)
{
    int ret = 0;

    for (int i = begin; i <= end; ++i)
    {
        ret += i;
    }

    return ret;
}


int main()
{
    int begin = 0;
    int end = 100;
    int ret = Sum(begin, end);

    printf("form %d to %d 的和为：%d\n", begin, end, ret);

    return 0;
}
